//
//  AXFHUDView.m
//  BEEQUICK
//
//  Created by 李典 on 16/11/21.
//  Copyright © 2016年 SevenGroup. All rights reserved.
//

#import "AXFHUDView.h"

@implementation AXFHUDView

+ (UIView *)creatHudViewWithHUDLoadingTitle:(NSString *)loadingTitle titleFont:(CGFloat )font HUDMode:(MBProgressHUDMode)mode
{
    //  加载界面
    UIView *HUDView = [[UIView alloc]initWithFrame:[UIScreen mainScreen].bounds];
    HUDView.backgroundColor = [UIColor whiteColor];
    MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:HUDView animated:YES];
    //  加载界面 模式  枚举
    hud.mode = mode;
    hud.label.text = NSLocalizedString(loadingTitle, @"HUD loading title");
    hud.label.font = [UIFont systemFontOfSize:font];
    return HUDView;
}

@end
